package com.suo.AVL;

public class Main {
    public static void main(String[] args) {
        int[] nums = new int[]{1,5,8,9,2,3,555,777,6,99,0,-3};
        AVL avl = new AVL();
        for (int i : nums) {
            avl.insert(i);
        }
        avl.printTree();
        int[] deletes = new int[] {1,-3,5,555,0,0,0,0};
        for (int i : deletes) {
            avl.remove(i);
            avl.printTree();
        }
    }
}
